// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  components: true,
  runtimeConfig: {
    // 仅在服务器端可用的私钥
    apiSecret: '123',
    // public 中的密钥也暴露在客户端
    public: {
      apiBase: '/api',
      hello: 'world',
    },
  },
  compatibilityDate: '2025-07-15',
  devtools: { enabled: true },
  vite: {
    vue: {
      defineModel: true,
      propsDestructure: true,
      customElement: true,
    },
    vueJsx: {
      mergeProps: true,
    },
  },
})
